﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using LyyCMS.Core;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;

namespace LyyCMS.Web.Areas.Dash.Controllers
{
    [Area("Dash")]
    [Route("Dash/[controller]/[action]")]
    public class CheckController : BaseController
    {
        public CheckController(ILogger<BaseController> loggger, LyyCMSEntities lyyCMSEntities) : base(loggger, lyyCMSEntities)
        {
        }

        public IActionResult Index()
        {
            _logger.LogInformation("这个就是测试一下");
            int nums = _context.Blogs.Count();
            base.GetSession(HttpContext);

            _logger.LogInformation("获取到用户：" + session_uid);

            _logger.LogInformation("获取到博客:{0}", nums);

            

            return View(nums);
        }
    }
}